Skip to contentSkip to conversation

libcacard: fix version string in libcacard.pc

PATCH [email protected] 2 participants 3 messages Nov 23, 2023 – Nov 24, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Adding git-native to DEPENDS also fixes this issue. This should be the preferred way to fix I guess?

Quoted 87 lines · Markus Volk
Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>
---
 ...n.build-set-hardcoded-version-string.patch | 34 
+++++++++++++++++++
 .../recipes-support/spice/libcacard_2.8.1.bb  |  5 ++-
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 

meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch

(quoted diff) +0 -0
new file mode 100644
index 000000000..b9d31c458

b/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch

(quoted diff) +1 -0
@@ -0,0 +1,34 @@
+From dbfc08b9dc879e21bfacbd153948d21db36d50cd Mon Sep 17 00:00:00 

2001

(quoted diff) +5 -0
+From: Markus Volk <[email protected] <mailto:[email protected]>>
+Date: Thu, 23 Nov 2023 13:20:40 +0100
+Subject: [PATCH] meson.build: set hardcoded version string
+
+Signed-off-by: Markus Volk <[email protected] 

<mailto:[email protected]>>

(quoted diff) +2 -0
+
+This fixes version string in the pkgconfig file and thus unbreaks 

spice build

+| spice-common| Run-time dependency libcacard found: NO
+|
+| ../git/subprojects/spice-common/meson.build:144:16: ERROR: 

Dependency lookup for libcacard with method 'pkgconfig' failed: Invalid version, need 'libcacard' ['>= 2.5.1'] found 'UNKNOWN'. +|
+| A full log can be found at /home/flk/poky/build/tmp/work/corei7-64-poky-linux/spice/0.15.2/build/meson-logs/meson-log.txt
+| ERROR: meson failed

(quoted diff) +13 -0
+
+Upstream-Status: Inappropriate [oe-specific]
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 9cfe248..00745e5 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,5 +1,5 @@
+ project('libcacard', 'c', 'cpp',
+-  version: run_command('build-aux/git-version-gen', 

'@0@/.tarball-version'.format(meson.source_root()), check: true).stdout().strip(), ++ version: '2.8.1',

(quoted diff) +6 -0
+   license: 'LGPLv2.1',
+   default_options: ['warning_level=2'],
+ )
+--
+2.42.0
+
meta-networking/recipes-support/spice/libcacard_2.8.1.bb +0 -1
index c81322e68..44cccba9d 100644
@@ -6,7 +6,10 @@ DEPENDS = "glib-2.0 pcsc-lite nss"
 
 SRCREV = "7b07684ea6698d4885ff2062350ad8798a04de42"
 
-SRC_URI = 

"git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master"

meta-networking/recipes-support/spice/libcacard_2.8.1.bb +2 -0
+SRC_URI = " \
+	git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master 

\

meta-networking/recipes-support/spice/libcacard_2.8.1.bb +1 -0
+	file://0001-meson.build-set-hardcoded-version-string.patch 

<file://0001-meson.build-set-hardcoded-version-string.patch/> \
+"

S = "${WORKDIR}/git"

--
2.42.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107022): <https://lists.openembedded.org/g/openembedded-devel/message/107022>
Mute This Topic: <https://lists.openembedded.org/mt/102765737/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 2 lines · On Thu, Nov 23, 2023 at 8:35 AM <[email protected]> wrote:

Adding git-native to DEPENDS also fixes this issue. This should be the preferred way to fix I guess?

as long as it does not go over network it might be ok although it elongates the depchain a bit
you can also insert the PV instead of hardcoding the version, that way you dont have to worry about updating the patch with every version bump

Quoted 7 lines · Markus Volk
Signed-off-by Markus Volk <[email protected]> --- ...n.build-set-hardcoded-version-string.patch | 34 +++++++++++++++++++ .../recipes-support/spice/libcacard_2.8.1.bb | 5 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch diff --git a/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch b/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch new file mode 100644 index 000000000..b9d31c458 --- /dev/null +++ b/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch @@ -0,0 +1,34 @@ +From dbfc08b9dc879e21bfacbd153948d21db36d50cd Mon Sep 17 00:00:00 2001 +From: Markus Volk <[email protected]> +Date: Thu, 23 Nov 2023 13:20:40 +0100 +Subject: [PATCH] meson.build: set hardcoded version string + +Signed-off-by: Markus Volk <[email protected]> + +This fixes version string in the pkgconfig file and thus unbreaks spice build +| spice-common| Run-time dependency libcacard found: NO +| +| ../git/subprojects/spice-common/meson.build:144:16: ERROR: Dependency lookup for libcacard with method 'pkgconfig' failed: Invalid version, need 'libcacard' ['>= 2.5.1'] found 'UNKNOWN'. +| +| A full log can be found at /home/flk/poky/build/tmp/work/corei7-64-poky-linux/spice/0.15.2/build/meson-logs/meson-log.txt +| ERROR: meson failed + +Upstream-Status: Inappropriate [oe-specific] +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 9cfe248..00745e5 100644 +--- a/meson.build ++++ b/meson.build +@@ -1,5 +1,5 @@ + project('libcacard', 'c', 'cpp', +- version: run_command('build-aux/git-version-gen', '@0@/.tarball-version'.format(meson.source_root()), check: true).stdout().strip(), ++ version: '2.8.1', + license: 'LGPLv2.1', + default_options: ['warning_level=2'], + ) +-- +2.42.0 + diff --git a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb index c81322e68..44cccba9d 100644 --- a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb +++ b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb @@ -6,7 +6,10 @@ DEPENDS = "glib-2.0 pcsc-lite nss" SRCREV = "7b07684ea6698d4885ff2062350ad8798a04de42" -SRC_URI = "git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master" +SRC_URI = " \ + git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master \ + file://0001-meson.build-set-hardcoded-version-string.patch \ +" S = "${WORKDIR}/git"

--
2.42.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#107022): https://lists.openembedded.org/g/openembedded-devel/message/107022 Mute This Topic: https://lists.openembedded.org/mt/102765737/3618223 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

I'm not quite sure if this is needed at all. I think it was caused by btrfs fs corruption. I managed to break btrfs several times in the last months. Fortunately never beyond repair but I'll definitely will switch back to ext4 for home directory of my build machine

Quoted 37 lines · Khem Raj
Quoted 3 lines · On Thu, Nov 23, 2023 at 8:35 AM <[email protected] <mailto:[email protected]>>…

Adding git-native to DEPENDS also fixes this issue. This should be
the preferred way to fix I guess?

as long as it does not go over network it might be ok although it elongates the depchain a bit
you can also insert the PV instead of hardcoding the version, that way you dont have to worry about updating the patch with every version bump

Quoted 26 lines

On Thu, Nov 23 2023 at 01:33:02 PM +01:00:00, Markus Volk
<[email protected] <mailto:[email protected]>> wrote:

<mailto:[email protected]>> --- ...n.build-set-hardcoded-version-string.patch | 34
+++++++++++++++++++ .../recipes-support/spice/libcacard_2.8.1.bb | 5
++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode
100644 meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch diff --git a/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch b/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch new file mode 100644 index 000000000..b9d31c458 --- /dev/null +++ b/meta-networking/recipes-support/spice/libcacard/0001-meson.build-set-hardcoded-version-string.patch

(quoted diff) +0 -0
@@ -0,0 +1,34 @@ +From dbfc08b9dc879e21bfacbd153948d21db36d50cd Mon 
Sep 17 00:00:00 2001 +From: Markus Volk <[email protected]> +Date: Thu, 23 Nov 2023 13:20:40 +0100 +Subject: [PATCH] meson.build: set hardcoded version string + +Signed-off-by: Markus Volk <[email protected]> + +This fixes version string in the pkgconfig file and thus unbreaks spice build +| spice-common| Run-time dependency libcacard found: NO +| +| ../git/subprojects/spice-common/meson.build:144:16: ERROR: Dependency lookup for libcacard with method 'pkgconfig' failed: Invalid version, need 'libcacard' ['>= 2.5.1'] found 'UNKNOWN'. +| 

+| A full log can be found at
/home/flk/poky/build/tmp/work/corei7-64-poky-linux/spice/0.15.2/build/meson-logs/meson-log.txt
+| ERROR: meson failed + +Upstream-Status: Inappropriate
[oe-specific] +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 9cfe248..00745e5 100644 +--- a/meson.build ++++ b/meson.build +@@ -1,5 +1,5 @@ + project('libcacard', 'c', 'cpp', +- version: run_command('build-aux/git-version-gen', '@0@/.tarball-version'.format(meson.source_root()), check: true).stdout().strip(), ++ version: '2.8.1', + license: 'LGPLv2.1',
+ default_options: ['warning_level=2'], + ) +-- +2.42.0 + diff --git
a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb index c81322e68..44cccba9d 100644 --- a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb +++ b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb @@ -6,7
+6,10 @@ DEPENDS = "glib-2.0 pcsc-lite nss" SRCREV =
"7b07684ea6698d4885ff2062350ad8798a04de42" -SRC_URI = "git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master"
+SRC_URI = " \ +
git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master \ + file://0001-meson.build-set-hardcoded-version-string.patch \ +" S = "${WORKDIR}/git"
--
2.42.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to
this group. View/Reply Online (#107022): <https://lists.openembedded.org/g/openembedded-devel/message/107022> Mute This Topic: <https://lists.openembedded.org/mt/102765737/3618223> Group Owner: [email protected] <mailto:[email protected]> Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-